﻿using System;
using System.Collections.Generic;

public class Rank : IComparable<Rank>
{
    public string name;
    public int score;
    public int time;
    public Rank()
    {

    }
    public Rank(string name, int score, int time)
    {
        this.name = name;
        this.score = score;
        this.time = time;
    }

    public int CompareTo(Rank other)
    {
        if (this.time < other.time)
        {
            return -1;
        }
        return 0;
    }
}
public class RankData
{
    public List<Rank> ranks = new List<Rank>();
}
